package com.tang.common.feign;

import com.tang.common.entity.UserEntity;
import com.tang.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@FeignClient(name = "file-center",path = "/fileCenter")
public interface FileCenterFeign {
    /**
     * 上传图片
     */
    @PostMapping("/gallery/upload")
    R<String> upload(MultipartFile file);

    /**
     * 删除图片
     */
    @GetMapping("/gallery/delete/{name}")
    void delete(@PathVariable("name") String name);
}
